package chatController;

import people.User;

/**
 * <b>Project ChatSystemG2 - INSA 4INFOA1 - 2013/2014</b>
 * <P>
 * <i>Package  chatController</i> <br>
 * ContToGUI is an interface. It represents the methods of the chatController corresponding to the chatGUI.
 *
 * @author Sergio Gonzalez - Marie-Charlotte Bideaud
 */

public interface ContToGUI {
	
	/**
	 * When a connection is initialized by the local user
	 * 
	 * @param username : String 
	 */
	public void performConnect (String username) ;
	
	/**
	 * When the local user wants to disconnect from the chat 
	 */
	public void performDisconnect () ;
	
	/**
	 * Method to send a text message to a remote user
	 *  
	 * @param user : User 
	 */
	public void performSendText (User user) ; 
	
	/**
	 * Method to send a file request to a remote user
	 * 
	 * @param user : User 
	 */
	public void performFileRequest (User user) ;
	
	/**
	 * Method to send an answer after a file request 
	 * 
	 * @param user : User 
	 */
	public void performAnswer (User user) ;
	
}
